Skip to content

Add chi + net/http bridge and sqlc stdlib compatibility rollout#30

Merged
hmmftg merged 1 commit into
mainfrom
cursor/chi-stdlib-sqlc-pgx-c6e3
Jun 17, 2026
Merged

Add chi + net/http bridge and sqlc stdlib compatibility rollout#30
hmmftg merged 1 commit into
mainfrom
cursor/chi-stdlib-sqlc-pgx-c6e3

Conversation

@hmmftg

@hmmftg hmmftg commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • fix net/http handler bridge by injecting *http.Request and http.ResponseWriter into context and resolving them inside libContext.InitContext
  • add net/http bridge regression tests to validate parser-backed response writing
  • add libChi helper package for route param extraction and parser initialization
  • add chi route-param tests (single, multiple, missing)
  • add sqlc-style integration test using *sql.DB + sqlmock for chi + net/http flow
  • document canonical chi + net/http + sqlc(database/sql) + pgx/stdlib setup in README
  • document optional pgx-native track and parity matrix

Validation

  • go test ./libNetHttp ./libChi
  • go test ./libContext
Open in Web Open in Cursor 

Co-authored-by: حمید ملک محمدی <hmmftg@gmail.com>
@hmmftg hmmftg marked this pull request as ready for review June 17, 2026 09:34
@hmmftg hmmftg merged commit 44f1f52 into main Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants